from fastapi import FastAPI
from scalar_fastapi import get_scalar_api_reference

app = FastAPI()

@app.get("/hello", summary="Say Hello99")
async def get_hello_world():
    data = {
        "message": "Hello World!",
        "status": "success"
    }
    return data


# scalar api文档
@app.get("/scalar_doc", include_in_schema=False)
async def get_scalar():
    return get_scalar_api_reference(
        openapi_url=app.openapi_url,
        title="Scalar API 文档",
    )